/**
 * java多线程模式
 * @author andy.rong
 */
package com.myjavalab.thread;

public class Main {

	public static void main(String[] args) {

		Main.testMyThread();
//		Main.testPrintThread();
//		Main.testPrinter();
	}
	
	public static void testMyThread() {
		MyThread t = new MyThread("My");
		t.start();
		for(int i = 0; i < 1; i++) {
			System.out.println(Thread.currentThread().getName() + "Good");
		}		
	}
	
	public static void testPrintThread() {
		new PrintThread("Nice").start();
		new PrintThread("Good").start();
	}
	
	public static void testPrinter() {
		new Thread(new Printer("Nice")).start();
		new Thread(new Printer("Good")).start();
	}
}
